package com.jplus.exception;

import com.jplus.enums.ResultEnum;

public class SFUmbrellaException extends RuntimeException {

    private Integer code;

    public SFUmbrellaException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public SFUmbrellaException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
